package errors;

import java.awt.Dimension;
import java.awt.Shape;

/**errore da lanciare quando si vuole inserire un Foreground con coordinate esterne da quelle della mappa
 * 
 * @author koldar
 * @version 1.0
 */
public class CoordinatesNotAcceptableException extends RuntimeException{

	private static final long serialVersionUID = 1123480430499744975L;
	
	public CoordinatesNotAcceptableException(Shape actual,Shape compatible){
		super("the cooridnates "+actual.getBounds()+" isn't supported in the map of maximum dimension "+compatible.getBounds());
	}

}
